﻿@model Prime.Models.Student

@{
    ViewBag.Title = "Edit";
}
<div class="container">

    <h2>Izmena profila</h2>


    @using (Html.BeginForm())
    {
        @Html.AntiForgeryToken()

        <div class="form-horizontal">
            <h4>Student</h4>
            <hr />
            @Html.ValidationSummary(true)
            @Html.HiddenFor(model => model.UserName)

            <div class="form-group">
                <label class="control-label col-md-2">Ime</label>
                <div class="col-md-10">
                    @Html.EditorFor(model => model.FirstName)
                    @Html.ValidationMessageFor(model => model.FirstName)
                </div>
            </div>

            <div class="form-group">
                <label class="control-label col-md-2">Prezime</label>
                <div class="col-md-10">
                    @Html.EditorFor(model => model.LastName)
                    @Html.ValidationMessageFor(model => model.LastName)
                </div>
            </div>

            <div class="form-group">
                <label class="control-label col-md-2">e-mail</label>
                <div class="col-md-10">
                    @Html.EditorFor(model => model.Email)
                    @Html.ValidationMessageFor(model => model.Email)
                </div>
            </div>

            <div class="form-group">
                <label   class = "control-label col-md-2">Datum rodjenja</label>
                <div class="col-md-10">
                    @Html.EditorFor(model => model.DateOfBirth)
                    @Html.ValidationMessageFor(model => model.DateOfBirth)
                </div>
            </div>


            <div class="form-group">
                <div class="col-md-offset-2 col-md-10">
                    <input type="submit" value="Save" class="btn btn-default" />
                </div>
            </div>
        </div>
    }

    <div>                @Html.ActionLink("Lista korisnika", "Index") |
 
    </div>
</div>
@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
